#define _CRT_SECURE_NO_WARNINGS 1
#include "Heap.h"

int main()
{
	int a[] = { 12,65,5,66,3,8,7,9};
	Heap hp;

	HeapCreate(&hp, a, sizeof(a) / sizeof(int));
	printf("%d ", HeapSize(&hp));
	printf("\n");

	for (int i = 0; i < HeapSize(&hp); i++)
	{
		printf("%d ", hp._a[i]);
	}

	printf("\n");

	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}


	HeapDestory(&hp);

	return 0;
}